GET One pool lifetime statistics
Pool lifetime activity statistics for a given pool.
GET /api/bi/pools/{pool_hash}/stats/lifetime
🎰 Parameters
Name | Description | In | Type | Required |
---|---|---|---|---|
pool_hash | The Bech32 encoding of a given pool hash | path | string | true |
👨💻 Code samples
- Node.js
- Python
- Rust
const CBI = await new CardanoBI({ apiKey: 'YOUR-KEY', apiSecret: 'YOUR-SECRET' });
const lifetime stats_lifetime = await CBI.bi.pools.stats.lifetime_({ pool_hash: "pool1y24nj4qdkg35nvvnfawukauggsxrxuy74876cplmxsee29w5axc" });
console.log(lifetime stats_lifetime);
CBI = CardanoBI(apiKey='YOUR-KEY', apiSecret='YOUR-SECRET' });
lifetime stats_lifetime = await CBI.bi.pools.stats.lifetime_(pool_hash='pool1y24nj4qdkg35nvvnfawukauggsxrxuy74876cplmxsee29w5axc');
print(lifetime stats_lifetime);
let CBI = CardanoBI::new(Some("YOUR-KEY"), Some("YOUR-SECRET")).await.expect("Failed to initialize CardanoBI");
let lifetime stats_lifetime = CBI.bi.pools.stats.lifetime_(Some("pool1y24nj4qdkg35nvvnfawukauggsxrxuy74876cplmxsee29w5axc"), HashMap::new()).await.expect("Failed to call endpoint");
println!("lifetime stats_lifetime: {:?}", lifetime stats_lifetime);
💌 Response Codes
- 200
- 400
- 401
- 402
- 403
- 404
- 429
OK: Successful request.
{
"pool_hash": "pool1y24nj4qdkg35nvvnfawukauggsxrxuy74876cplmxsee29w5axc",
"tx_count_lifetime": 12211,
"block_count_lifetime": 786,
"delegator_count_lifetime": 7635,
"delegated_stakes_lifetime": 865624664452630,
"delegator_count_lifetime_avg": 37.06310679611651,
"delegated_stakes_lifetime_avg": 4202061477925.388
}
Bad Request: The request was unacceptable, often due to missing a required parameter.
Response schema is undefined.
Unauthorized: No valid API key provided.
Response schema is undefined.
Quota Exceeded: This API key has reached its usage limit on request.
Response schema is undefined.
Access Denied: The request is missing a valid API key or token.
Response schema is undefined.
Not Found: The requested resource cannot be found.
Response schema is undefined.
Too Many Requests: This API key has reached its rate limit.
Response schema is undefined.
💌 Response Schemas
- 200
- 400
- 401
- 402
- 403
- 404
- 429
Status Code 200
Name | Type | Description |
---|---|---|
pool_hash | string | The Bech32 encoding of the pool hash. |
tx_count_lifetime | integer(int64) | The lifetime transaction count. |
block_count_lifetime | integer(int64) | The lifetime block count. |
delegator_count_lifetime | integer(int64) | The lifetime delegator count. |
delegated_stakes_lifetime | number(double) | The lifetime delegated stake for the given pool (lifetime active stake). |
delegator_count_lifetime_avg | number(double) | The lifetime average delegator count. |
delegated_stakes_lifetime_avg | number(double) | The lifetime average delegated stake for the given pool (lifetime average active stake). |
Status Code 400
Name | Type | Description |
---|
Response schema is undefined.
Status Code 401
Name | Type | Description |
---|
Response schema is undefined.
Status Code 402
Name | Type | Description |
---|
Response schema is undefined.
Status Code 403
Name | Type | Description |
---|
Response schema is undefined.
Status Code 404
Name | Type | Description |
---|
Response schema is undefined.
Status Code 429
Name | Type | Description |
---|
Response schema is undefined.